﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Stauffware.Common.Core;
using Stauffware.Common.Xml;
using NUnit.Framework;

namespace XmlUnitTests
{
	public class NiceXmlReader_tests
	{
		//-----------------------------------------------------------------------------

		private static void Test_ErrorHandling (string xmlFilePath)
		{
			try
			{
				NiceXmlReader nxr = new NiceXmlReader(xmlFilePath);
				while (nxr.Read())
					;
			}
			catch (Exception x)
			{
				ErrorUtils.DumpExceptionChain(x, Console.Out);
			}
		}

	}
}
